home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / FREENET / MELL / NETLIB00 / !NetLib / sys / h / errno < prev    next >
Encoding:
Text File  |  1997-04-14  |  2.4 KB  |  48 lines

  1. #ifndef __sys_errno_h
  2. #define __sys_errno_h
  3.  
  4. /* Freenet programmers interface - sys/errno.h - 23/5/95 */
  5. /* new codes added - stewart 12/11/96 */
  6. /* EPIPE added - stewart 11/4/97 */
  7.  
  8. #include <errno.h>
  9.  
  10. #define ENOENT        2    /* Not found */
  11. #define EBADF           9       /* Bad descriptor */
  12. #define EAGAIN          11      /* No more ports */
  13. #define EFAULT          14      /* Bad address */
  14. #define EINVAL          22      /* Invalid argument */
  15. #define ENOSPC        28    /* No space on device/DNS buffer overflow */
  16. #define EPIPE        32    /* Peer closed reading side of its socket */
  17. #define EWOULDBLOCK     35      /* Operation would block */
  18. #define EINPROGRESS     36      /* Operation now in progress */
  19. #define EALREADY        37      /* Operation already in progress */
  20. #define ENOTSOCK        38      /* Socket peration on non-socket */
  21. #define EDESTADDRREQ    39      /* Destination address required */
  22. #define EMSGSIZE        40      /* Message too long */
  23. #define EPROTOTYPE      41      /* Protocol wrong type for socket */
  24. #define ENOPROTOOPT     42      /* Protocol not available */
  25. #define EPROTONOSUPPORT 43      /* Protocol not supported */
  26. #define ESOCKTNOSUPPORT 44      /* Socket type not supported */
  27. #define EOPNOTSUPP      45      /* Operation not supported on socket */
  28. #define EPFNOSUPPORT    46      /* Protocol family not supported */
  29. #define EAFNOSUPPORT    47      /* Address family not supported */
  30. #define EADDRINUSE      48      /* Address already in use */
  31. #define EADDRNOTAVAIL   49      /* Can't assign requested address */
  32. #define ENETDOWN        50      /* Network is down */
  33. #define ENETUNREACH     51      /* Network is unreachable */
  34. #define ENETRESET       52      /* Network dropped connection on reset */
  35. #define ECONNABORTED    53      /* Software caused connection abort */
  36. #define ECONNRESET      54      /* Connection reset by peer */
  37. #define ENOBUFS         55      /* No buffer space available */
  38. #define EISCONN         56      /* Socket is already connected */
  39. #define ENOTCONN        57      /* Socket is not connected */
  40. #define ESHUTDOWN       58      /* Can't send after socket shutdown */
  41. #define ETOOMANYREFS    59      /* Too many references: can't splice */
  42. #define ETIMEDOUT       60      /* Connection timed out */
  43. #define ECONNREFUSED    61      /* Connection refused */
  44. #define EHOSTDOWN       64      /* Host is down */
  45. #define EHOSTUNREACH    65      /* No route to host */
  46.  
  47. #endif
  48.